class BaseService<T> {
     currentInstance:T
    constructor(service:T) {
        this.currentInstance=service
    }
    public getInstance():T{
        return this.currentInstance
    }
}